<%@ page contentType="text/html; charset=utf-8" language="java" errorPage="" %>
<%@ page import		=	"com.oreilly.servlet.MultipartRequest,
							 com.oreilly.servlet.multipart.ByTimestampFileRenamePolicy" 
%>
<jsp:useBean id		=	"commgr" class="common.CommonMgr" scope="page"/>
<%@ include file="/inc/inc_top.jsp" %>
<%
	String cntPath = "275_svr/editor";
	MultipartRequest multi	=	new MultipartRequest(request, cSavePath, 5*1024*1024, "euc-kr",new ByTimestampFileRenamePolicy("275"));
	String srcWin  = multi.getParameter("srcWin") == null ? "" : multi.getParameter("srcWin");
	String image_file11 = multi.getOriginalFileName("upload_file");
	String image_file12 = multi.getFilesystemName("upload_file");
	String image_align 	= multi.getParameter("image_align");
	
	
%>

<script>
<%
	if(srcWin.equals("")){
%>
var imageTag = "<br /><img src='<%=cImgServer%>/<%=cntPath%>/<%=image_file12%>' "
			+ "align=\"<%=image_align%>\""
			+ "border='0' onkeydown='' ><br />";
opener.EditorCtrl.document.body.innerHTML = opener.EditorCtrl.document.body.innerHTML + imageTag;
<%
	}else if(srcWin.equals("writebox")){
%>
opener.document.getElementById("DOC_BGIMAGE").value ="<%=cImgServer%>/<%=cntPath%>/<%=image_file12%>"; 
<%
	}
%>
self.close();
</script>
</head>
<body>

</body>
</html>